
//mongo.exe  -u root -p 123456 localhost:27017/admin E:\workspace\waterblabla\server\src\waterblabla\app\initMongo.js

db = db.getSiblingDB('data');
db.createCollection("hour", { size: 2147483648 } );
db.hour.createIndex( { id: 1, ts:1, mean:1 },{name:"idx1",background:true} );
db.createCollection("day", { size: 2147483648 } );
db.day.createIndex( { id: 1, ts:1, mean:1 },{name:"idx1",background:true});
db.createCollection("minute", { capped:true, size:5242880,max:20000 } );
db.day.createIndex( { id: 1, ts:1, val:1 },{name:"idx1",background:true});

